package com.yi.student.filter;

import org.springframework.web.context.WebApplicationContext;

public class WebserviceUtils {
	
	public static WebApplicationContext wac ;
	
	private WebserviceUtils(){
		
	}
	
	public static void setWac(WebApplicationContext wac){
		WebserviceUtils.wac = wac ;
	}
	
	public static WebApplicationContext getWac(){
		return WebserviceUtils.wac ;
	}
	
	public static Object getBeans(String beanname){
		return wac.getBean(beanname);
	}

}
